package com.etl.user.model;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.xr.model.Model;

/**
 * <p>
 * 用户
 * </p>
 *
 * @author Arnold Yang
 * @since 2018-03-25
 */
@TableName("etl_user")
public class User extends Model {

    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;
    /**
     * 用户名
     */
    @TableField("user_name")
    private String userName;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 手机号
     */
    @TableField("mobile_number")
    private String mobileNumber;
    /**
     * 加密盐
     */
    @TableField("encrypt_salt")
    private String encryptSalt;
    /**
     * 密码
     */
    private String password;
    /**
     * 支付密码
     */
    @TableField("pay_password")
    private String payPassword;
    /**
     * 用户类型 0-普通用户
     */
    @TableField("user_type")
    private Integer userType;
    /**
     * 用户角色 1-出借人 2-借款人 3-担保人
     */
    @TableField("user_role")
    private Integer userRole;
    /**
     * 注册时间
     */
    @TableField("registry_time")
    private Long registryTime;
    /**
     * 注册渠道
     */
    @TableField("registry_channel")
    private Integer registryChannel;
    /**
     * 头像
     */
    private String portrait;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobileNumber() {
        return mobileNumber;
    }

    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }

    public String getEncryptSalt() {
        return encryptSalt;
    }

    public void setEncryptSalt(String encryptSalt) {
        this.encryptSalt = encryptSalt;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPayPassword() {
        return payPassword;
    }

    public void setPayPassword(String payPassword) {
        this.payPassword = payPassword;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getUserRole() {
        return userRole;
    }

    public void setUserRole(Integer userRole) {
        this.userRole = userRole;
    }

    public Long getRegistryTime() {
        return registryTime;
    }

    public void setRegistryTime(Long registryTime) {
        this.registryTime = registryTime;
    }

    public Integer getRegistryChannel() {
        return registryChannel;
    }

    public void setRegistryChannel(Integer registryChannel) {
        this.registryChannel = registryChannel;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    @Override
    public String toString() {
        return "User{" +
        ", userId=" + userId +
        ", userName=" + userName +
        ", email=" + email +
        ", mobileNumber=" + mobileNumber +
        ", encryptSalt=" + encryptSalt +
        ", password=" + password +
        ", payPassword=" + payPassword +
        ", userType=" + userType +
        ", userRole=" + userRole +
        ", registryTime=" + registryTime +
        ", registryChannel=" + registryChannel +
        ", portrait=" + portrait +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", version=" + version +
        ", feature=" + feature +
        "}";
    }
}
